package com.financial.service.heemoney.convertor;

import com.financial.service.heemoney.dto.HeemoneyConfigDTO;
import com.financial.service.heemoney.dto.businsess.HeemoneySettleQueryBusinessDTO;
import com.financial.service.heemoney.dto.commmon.HeemoneySettleQueryCommonDTO;
import com.financial.service.heemoney.dto.inparameter.HeemoneySettleQueryInParamDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author: wenguoqiang
 * @Email wguoqiango@163.com
 * @Date: 2019/12/6 0006 上午 10:45
 * @Des
 */
@Mapper
public interface HeemoneySettleQueryConvert {

    HeemoneySettleQueryConvert MAPPER = Mappers.getMapper(HeemoneySettleQueryConvert.class);

    @Mapping(target = "method", source = "heemoneyConfigDTO.heemoneySettleQuey.method")
    @Mapping(target = "key",source ="heemoneyConfigDTO.heemoneyPaymentType.key")
    HeemoneySettleQueryCommonDTO convertCommonDTO(HeemoneyConfigDTO heemoneyConfigDTO, HeemoneySettleQueryInParamDTO heemoneySettleQueryInParamDTO);

    HeemoneySettleQueryBusinessDTO convertBusinessDTO( HeemoneySettleQueryInParamDTO heemoneySettleQueryInParamDTO);

}
